package lab02.Test09;

/**
 * Created by Administrator on 2017/10/21.
 */
public class Student {
    //属性：学号、班号、姓名、性别、年龄，
    String studentnumber;
    String classnumber;
    String name;
    String sex;
    int age;
    //方法：获得学号、获得班号、获得性别、获得姓名、获得年龄、获得年龄。
    String getStudentnumber(){
        return  studentnumber;
    }
    String getClassnumber(){
        return classnumber;
    }
    String getName(){
        return  name;
    }
    String getSex(){
        return sex;
    }
    int getAge(){
        return age;
    }
    public String toString(){
        String k="studentnumber:"+studentnumber+"\n classnumber:"+classnumber+
                "\n name:"+name+"\n sex"+sex+"\n age"+age;
        return k;
    }
}
